<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: fatfs.sup/fatfs_tests.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b666832e27e3be33c87e99ef6d60e3b7.html">fatfs.sup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fatfs_tests.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fatfs__tests_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="user__config_8h.html">user_config.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fatfs_8h.html">fatfs.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifdef AVR</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">//#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="time_8h.html">lib/time.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="stringsup_8h.html">lib/stringsup.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mathio_8h.html">printf/mathio.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="fatfs__tests_8h.html#ad16bc1913c19300dba43a07006c9ac52">   46</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8c.html#ad16bc1913c19300dba43a07006c9ac52">fatfs_help</a>( <span class="keywordtype">int</span> full)</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;fatfs help\n&quot;</span>);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">if</span>(full)</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;#ifdef POSIX_TESTS</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="stringliteral">&quot;Note: fatfs tests MUST start with \&quot;fatfs\&quot; keyword\n&quot;</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;#<span class="keywordflow">else</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="stringliteral">&quot;Note: fatfs prefix is optional\n&quot;</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;#endif</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="stringliteral">&quot;fatfs help\n&quot;</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;#ifdef FATFS_UTILS_FULL</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="stringliteral">&quot;fatfs attrib file p1 p2\n&quot;</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="stringliteral">&quot;fatfs cat file\n&quot;</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="stringliteral">&quot;fatfs cd dir\n&quot;</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="stringliteral">&quot;fatfs copy file1 file2\n&quot;</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="stringliteral">&quot;fatfs create file str\n&quot;</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;#endif</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="stringliteral">&quot;fatfs mmc_test\n&quot;</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="stringliteral">&quot;fatfs mmc_init\n&quot;</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="stringliteral">&quot;fatfs ls dir\n&quot;</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;#ifdef FATFS_UTILS_FULL</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="stringliteral">&quot;fatfs mkdir dir\n&quot;</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="stringliteral">&quot;fatfs mkfs\n&quot;</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="stringliteral">&quot;fatfs pwd\n&quot;</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;#endif</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="stringliteral">&quot;fatfs status file\n&quot;</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;#ifdef FATFS_UTILS_FULL</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="stringliteral">&quot;fatfs stat file\n&quot;</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="stringliteral">&quot;fatfs rm file\n&quot;</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="stringliteral">&quot;fatfs rmdir dir\n&quot;</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="stringliteral">&quot;fatfs rename old new\n&quot;</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;#endif</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="stringliteral">&quot;\n&quot;</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        );</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        </div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;}</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="fatfs__tests_8h.html#adc8904337a4bee5420ecc3527864f844">  101</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="fatfs__tests_8c.html#adc8904337a4bee5420ecc3527864f844">fatfs_tests</a>(<span class="keywordtype">int</span> argc,<span class="keywordtype">char</span> *argv[])</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;{</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordtype">char</span> *ptr;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#a4b00721003b8d35559a55c9098ff36c5">ind</a>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    ind = 0;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    ptr = argv[ind++];</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordflow">if</span>(!ptr)</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keywordflow">return</span>(0);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">// If we have POSIX_TESTS we MUST prefix each test with &quot;fatfs&quot; keyword to avoid name clashing</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">if</span>( <a class="code" href="bdffontutil_8h.html#a4d192fe48cb19d0ef5a88c52ed23cf4c">MATCH</a>(ptr,<span class="stringliteral">&quot;fatfs&quot;</span>) )</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    {</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        ptr = argv[ind++];</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordflow">if</span> ( !ptr || <a class="code" href="bdffontutil_8h.html#a4d192fe48cb19d0ef5a88c52ed23cf4c">MATCH</a>(ptr,<span class="stringliteral">&quot;help&quot;</span>) )</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        {</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            <a class="code" href="fatfs__tests_8c.html#ad16bc1913c19300dba43a07006c9ac52">fatfs_help</a>(1);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        }</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    }</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#ifdef POSIX_TESTS</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    {</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordflow">return</span>(0);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    }</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;ls&quot;</span>, (ind + 0), argc))</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    {</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keywordtype">int</span> i;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <span class="keywordtype">int</span> args = 0;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;ind:%d,argc:%d\n&quot;</span>, ind, argc);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keywordflow">for</span>(i=ind;i&lt;argc;++i)</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        {</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            <span class="comment">//printf(&quot;%d:%s\n&quot;, i, argv[i]);</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            <a class="code" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a>(argv[i]);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            ++args;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        }</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <span class="keywordflow">if</span>(!args)</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        {</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;            <a class="code" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a>(<span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;mmc_test&quot;</span>,(ind+0),argc ))</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <a class="code" href="fatfs__tests_8c.html#ad5fed10f1507f55cfea45f5e3cb8c5d5">mmc_test</a>();</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    }</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;mmc_init&quot;</span>,(ind+0),argc))</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    {</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <a class="code" href="mmc__hal_8c.html#ad417477e66c88b40dcce683fd6a5c47a">mmc_init</a>(1);</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    }</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;status&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    {</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ad7d2063fab39190a7288bfa7cb647b46">fatfs_status</a>(argv[ind]);</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    }</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">#ifdef FATFS_UTILS_FULL</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;attrib&quot;</span>,(ind+3),argc))</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    {</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>( <a class="code" href="ff_8c.html#ab007bc58e2fdfc5d1ae8e87796e73965">f_chmod</a>(argv[ind],<a class="code" href="mathio_8c.html#ae952cb1ae6aec6b2b6c02ae67e9ea87b">atol</a>(argv[ind+1]),<a class="code" href="mathio_8c.html#ae952cb1ae6aec6b2b6c02ae67e9ea87b">atol</a>(argv[ind+2])) );</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;cat&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    {</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(argv[ind]);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    }</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">#if _FS_RPATH</span></div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;cd&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    {</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a13b052da94097b8b93c3d9f1e564463d">fatfs_cd</a>(argv[ind]);</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    }</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;copy&quot;</span>, (ind + 2), argc))</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    {</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a23a2f537fbb0a757d6f98a5a60824a4d">fatfs_copy</a>(argv[ind],argv[ind+1]);</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    }</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;create&quot;</span>, (ind + 2), argc))</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    {</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <a class="code" href="fatfs__tests_8h.html#ad2debe3eb75bb1a6f65329659eedb706">fatfs_create</a>(argv[ind],argv[ind+1]);</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    }</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;mkdir&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    {</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a4aa62d8de2bcffc328877256c6b71223">fatfs_mkdir</a>(argv[ind]);</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    }</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;mkfs&quot;</span>, (ind + 0), argc))</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    {</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <a class="code" href="structFATFS.html">FATFS</a> fs;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *mem;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;        <span class="comment">/* Register work area to the logical drive 0 */</span></div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        res = <a class="code" href="ff_8c.html#a3bff54412627eb9cf8951ec88a464d1c">f_mount</a>(&amp;fs, <span class="stringliteral">&quot;0:&quot;</span>, 0);                    </div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;            <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        mem = <a class="code" href="system_8c.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a>(1024);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;       <span class="comment">/* Create FAT volume on the logical drive 0. 2nd argument is ignored. */</span></div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        res = <a class="code" href="ff_8c.html#a52ff3c14f48a7bd12b5d8fcef84787ea">f_mkfs</a>(<span class="stringliteral">&quot;0:&quot;</span>, <a class="code" href="ff_8h.html#aff61d3ed8f8c6ea5c25c3cb366320e08">FM_FAT32</a>, 0, mem, 1024);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <a class="code" href="system_8c.html#a61f06ee340417c629633142e0a5db288">safefree</a>(mem);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    }</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="preprocessor">#if _FS_RPATH</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">#if _FS_RPATH &gt;= 2</span></div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;pwd&quot;</span>, (ind + 0), argc))</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    {</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a1c1f6b5746c5bd08bdf645c951c5421f">fatfs_pwd</a>();</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    }</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="preprocessor">#endif // #if _FS_RPATH &gt;= 2</span></div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="preprocessor">#endif // #if _FS_RPATH </span></div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;rename&quot;</span>, (ind + 2), argc))</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    {</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        <a class="code" href="fatfs__tests_8h.html#ace47a8763a0dc6a96cc8f8abb4bf3a7a">fatfs_rename</a>(argv[ind],argv[ind+1]);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    }</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;rmdir&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    {</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <a class="code" href="fatfs__tests_8h.html#ab138ae7a3df0a7affe8e27236e8b70c3">fatfs_rmdir</a>(argv[ind]);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    }</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;rm&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    {</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a40de2d35f2fcb56e6c0c3f8674bab818">fatfs_rm</a>(argv[ind]);</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    }</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a>(ptr,<span class="stringliteral">&quot;stat&quot;</span>, (ind + 1), argc))</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    {</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <a class="code" href="fatfs__tests_8h.html#a2f1bfd0aaac56da99b1898a21a2b73e9">fatfs_stat</a>(argv[ind]);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        <span class="keywordflow">return</span>(1);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    }</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="keywordflow">return</span>(0);</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;}</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="fatfs__tests_8h.html#ad5fed10f1507f55cfea45f5e3cb8c5d5">  271</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8c.html#ad5fed10f1507f55cfea45f5e3cb8c5d5">mmc_test</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;{</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;==============================\n&quot;</span>);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;START MMC TEST\n&quot;</span>);</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <a class="code" href="fatfs__sup_8c.html#ad7d2063fab39190a7288bfa7cb647b46">fatfs_status</a>(<span class="stringliteral">&quot;/&quot;</span>);</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;MMC Directory List\n&quot;</span>);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <a class="code" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a>(<span class="stringliteral">&quot;/&quot;</span>);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="preprocessor">#ifdef FATFS_UTILS_FULL</span></div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#if _FS_RPATH</span></div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a13b052da94097b8b93c3d9f1e564463d">fatfs_cd</a>(<span class="stringliteral">&quot;/&quot;</span>);</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <a class="code" href="fatfs__tests_8h.html#ad2debe3eb75bb1a6f65329659eedb706">fatfs_create</a>(<span class="stringliteral">&quot;test.txt&quot;</span>,<span class="stringliteral">&quot;this is a test&quot;</span>);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(<span class="stringliteral">&quot;test.txt&quot;</span>);</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <a class="code" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a>(<span class="stringliteral">&quot;/&quot;</span>);</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <a class="code" href="fatfs__tests_8h.html#ad2debe3eb75bb1a6f65329659eedb706">fatfs_create</a>(<span class="stringliteral">&quot;test.txt&quot;</span>,<span class="stringliteral">&quot;this is a test&quot;</span>);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(<span class="stringliteral">&quot;test.txt&quot;</span>);</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a23a2f537fbb0a757d6f98a5a60824a4d">fatfs_copy</a>(<span class="stringliteral">&quot;test.txt&quot;</span>,<span class="stringliteral">&quot;test2.txt&quot;</span>);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(<span class="stringliteral">&quot;test2.txt&quot;</span>);</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="preprocessor">#if _FS_RPATH</span></div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a4aa62d8de2bcffc328877256c6b71223">fatfs_mkdir</a>(<span class="stringliteral">&quot;/tmp&quot;</span>);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a23a2f537fbb0a757d6f98a5a60824a4d">fatfs_copy</a>(<span class="stringliteral">&quot;test.txt&quot;</span>,<span class="stringliteral">&quot;tmp/test3.txt&quot;</span>);</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(<span class="stringliteral">&quot;tmp/test3.txt&quot;</span>);</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a13b052da94097b8b93c3d9f1e564463d">fatfs_cd</a>(<span class="stringliteral">&quot;/tmp&quot;</span>);</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a1c1f6b5746c5bd08bdf645c951c5421f">fatfs_pwd</a>();</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(<span class="stringliteral">&quot;test3.txt&quot;</span>);</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <a class="code" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a>(<span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;END MMC TEST\n&quot;</span>);</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;==============================\n&quot;</span>);</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;}</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="fatfs__tests_8h.html#a5306e261e84e6700704633a53153857c">  313</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;{</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="keywordtype">long</span> p1;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> s1, s2;</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <a class="code" href="structFILINFO.html">FILINFO</a> fno;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <a class="code" href="structDIR.html">DIR</a> dirs;                                     <span class="comment">/* Directory object */</span></div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <a class="code" href="structFATFS.html">FATFS</a> *fs;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordtype">char</span> buff[256]; </div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">if</span>(!name || !*name)</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    {</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <a class="code" href="stringsup_8c.html#a17598481fa495598cd57447afde0ff6b">strcpy</a>(buff,<span class="stringliteral">&quot;.&quot;</span>);</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    }</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    {</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        <a class="code" href="stringsup_8c.html#a17598481fa495598cd57447afde0ff6b">strcpy</a>(buff,name);</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    }</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Listing:[%s]\n&quot;</span>,buff);</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    res = <a class="code" href="ff_8c.html#aeb607fa4b05d127d971ff40f143bac66">f_opendir</a>(&amp;dirs, buff);</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="keywordflow">if</span> (res) { <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res); <span class="keywordflow">return</span>; }</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    p1 = s1 = s2 = 0;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <span class="keywordflow">while</span>(1)</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    {</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        res = <a class="code" href="ff_8c.html#ae9647e339708c3d803db8de141986d96">f_readdir</a>(&amp;dirs, &amp;fno);</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        <span class="keywordflow">if</span> ((res != <a class="code" href="ff_8h.html#a49d0171ecbd362cda5680a0d360db44ca62fce5cd9df008f8fc85f99706bda5f1">FR_OK</a>) || !fno.<a class="code" href="structFILINFO.html#a7c3ce2dd03dc9a9726967fc43116079f">fname</a>[0]) <span class="keywordflow">break</span>;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="keywordflow">if</span> (fno.<a class="code" href="structFILINFO.html#a838d542585831b085537b363f18205c0">fattrib</a> &amp; <a class="code" href="ff_8h.html#a3a9db44e978ed6c13b641e092d4cd7d3">AM_DIR</a>)</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        {</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;            s2++;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        }</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        <span class="keywordflow">else</span></div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        {</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            s1++; p1 += fno.<a class="code" href="structFILINFO.html#a9e5b78ed7190f73de3ebcbdfbd6d1844">fsize</a>;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        }</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        <a class="code" href="fatfs__sup_8c.html#a11c6644c2b989d1ac2492b30b80e4ead">fatfs_filinfo_list</a>(&amp;fno);</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="preprocessor">#ifdef ESP8266</span></div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        <a class="code" href="user__task_8c.html#a863d8bc03e69f2efee6042bcec7b456b">optimistic_yield</a>(1000);</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        <a class="code" href="system_8c.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a>();</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    }</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;%4u File(s),%10lu bytes total\n%4u Dir(s)&quot;</span>, s1, p1, s2);</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="ff_8c.html#a72098afbbef7ff8b850bacfc721d6bd0">f_getfree</a>(buff, (<a class="code" href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a>*)&amp;p1, &amp;fs) == <a class="code" href="ff_8h.html#a49d0171ecbd362cda5680a0d360db44ca62fce5cd9df008f8fc85f99706bda5f1">FR_OK</a>)</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;, %10luK bytes free\n&quot;</span>, p1 * fs-&gt;<a class="code" href="structFATFS.html#ad7fa7a509f8d097a9ab182d6c47be568">csize</a> / 2);</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;}</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<span class="preprocessor">#ifdef FATFS_UTILS_FULL</span></div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;{</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> s1;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <a class="code" href="structFIL.html">FIL</a> fp;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordtype">int</span> i;</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <span class="keywordtype">int</span> ret;</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordtype">long</span> size;</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordtype">char</span> *ptr;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Reading[%s]\n&quot;</span>, name);</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    res = <a class="code" href="ff_8c.html#ab13b513f64fe29bc02dcba9581ab3bfa">f_open</a>(&amp;fp, name, <a class="code" href="ff_8h.html#a0c5dd686b10f84c2a2b3954957a5979a">FA_OPEN_EXISTING</a> | <a class="code" href="ff_8h.html#a1f4f3530ff03abbd979b072536e72290">FA_READ</a>);</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    {</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;cat error\n&quot;</span>);</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;fp);</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    }</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    ptr = <a class="code" href="system_8c.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a>(512,1);</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keywordflow">if</span>(!ptr)</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    {</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Calloc failed!\n&quot;</span>);</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;fp);</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    }</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    size = 0;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    <span class="keywordflow">while</span>(1)</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    {</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;        res = <a class="code" href="ff_8c.html#ad55dbad62205065ba7e36ae5fc72dac6">f_read</a>(&amp;fp, ptr, 512, &amp;s1);</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keywordflow">if</span>(res)</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        {</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;            <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;cat read error\n&quot;</span>);</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;            <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;            <span class="keywordflow">break</span>;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        }</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        ret = s1;</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        <span class="keywordflow">if</span> (!s1)</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        {</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;            <span class="keywordflow">break</span>;</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        }</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        size += ret;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        <span class="keywordflow">for</span>(i=0;i&lt;ret;++i)</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        {</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            <span class="comment">//FIXME putchar depends on fdevopen having been called</span></div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            <span class="keywordflow">if</span>(<a class="code" href="posix_8h.html#a0c0ef221f95f64e8632451312fd18cc8">stdout</a>)</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;                <a class="code" href="mathio_8h.html#af4de2514b7778805db3815e8dd6cf09a">putchar</a>(ptr[i]);</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;            <span class="keywordflow">else</span></div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;                <a class="code" href="uart_8c.html#aad52b616aa1f07c5a59a5ddb6be602dc">uart_putc</a>(0,ptr[i]);</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        }</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;<span class="preprocessor">#ifdef ESP8266</span></div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;            <a class="code" href="user__task_8c.html#a863d8bc03e69f2efee6042bcec7b456b">optimistic_yield</a>(1000);</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;            <a class="code" href="system_8c.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a>();</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    }</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;\n&quot;</span>);</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;fp);</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <a class="code" href="system_8c.html#a61f06ee340417c629633142e0a5db288">safefree</a>(ptr);</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;%lu bytes\n&quot;</span>, size);</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;}</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a23a2f537fbb0a757d6f98a5a60824a4d">fatfs_copy</a>(<span class="keywordtype">char</span> *from,<span class="keywordtype">char</span> *to)</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;{</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> s1, s2;</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    <a class="code" href="structFIL.html">FIL</a> file1,file2;</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <span class="keywordtype">long</span> size;</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="keywordtype">char</span> *ptr;</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;<span class="preprocessor">#ifdef ESP8266</span></div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;<span class="preprocessor">#define MSIZE 4096</span></div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;<span class="preprocessor">#define MSIZE 512</span></div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Opening %s\n&quot;</span>, from);</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    res = <a class="code" href="ff_8c.html#ab13b513f64fe29bc02dcba9581ab3bfa">f_open</a>(&amp;file1, from, <a class="code" href="ff_8h.html#a0c5dd686b10f84c2a2b3954957a5979a">FA_OPEN_EXISTING</a> | <a class="code" href="ff_8h.html#a1f4f3530ff03abbd979b072536e72290">FA_READ</a>);</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    {</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    }</div><div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Creating %s\n&quot;</span>, to);</div><div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    res = <a class="code" href="ff_8c.html#ab13b513f64fe29bc02dcba9581ab3bfa">f_open</a>(&amp;file2, to, <a class="code" href="ff_8h.html#afba4546b131dea4b24727fa20a80e29f">FA_CREATE_ALWAYS</a> | <a class="code" href="ff_8h.html#afa366963220c89b882c0361794020c14">FA_WRITE</a>);</div><div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    {</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;file1);</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    }</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    ptr = <a class="code" href="system_8c.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a>(MSIZE,1);</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <span class="keywordflow">if</span>(!ptr)</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    {</div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Calloc failed!\n&quot;</span>);</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;file1);</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;file2);</div><div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    }</div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;\nCopying...\n&quot;</span>);</div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    size = 0;</div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <span class="keywordflow">for</span> (;;)</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    {</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        res = <a class="code" href="ff_8c.html#ad55dbad62205065ba7e36ae5fc72dac6">f_read</a>(&amp;file1, ptr, MSIZE, &amp;s1);</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;        <span class="keywordflow">if</span> (res || s1 == 0) <span class="keywordflow">break</span>;                <span class="comment">/* error or eof */</span></div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        res = <a class="code" href="ff_8c.html#abecaaa3eb194f786ab6042cf3b5e4ee7">f_write</a>(&amp;file2, ptr, s1, &amp;s2);</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        size += s2;</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Copied: %08ld\r&quot;</span>, size);</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        <span class="keywordflow">if</span> (res || s2 &lt; s1) <span class="keywordflow">break</span>;                <span class="comment">/* error or disk full */</span></div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    }</div><div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;%lu bytes copied.\n&quot;</span>, size);</div><div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    <a class="code" href="system_8c.html#a61f06ee340417c629633142e0a5db288">safefree</a>(ptr);</div><div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;    <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;file1);</div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;file2);</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;}</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#ad2debe3eb75bb1a6f65329659eedb706">fatfs_create</a>(<span class="keywordtype">char</span> *name, <span class="keywordtype">char</span> *str)</div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;{</div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> s1;</div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    <a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a> len;</div><div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    <a class="code" href="structFIL.html">FIL</a> fp;</div><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Creating [%s]\n&quot;</span>, name);</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Text[%s]\n&quot;</span>, str);</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    res = <a class="code" href="ff_8c.html#ab13b513f64fe29bc02dcba9581ab3bfa">f_open</a>(&amp;fp, name, <a class="code" href="ff_8h.html#afba4546b131dea4b24727fa20a80e29f">FA_CREATE_ALWAYS</a> | <a class="code" href="ff_8h.html#afa366963220c89b882c0361794020c14">FA_WRITE</a>);</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    {</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Create error\n&quot;</span>);</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;fp);</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;    }</div><div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;</div><div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    len = <a class="code" href="stringsup_8c.html#a895ea3a2f9901e4c962806cc15271339">strlen</a>(str);</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    res = <a class="code" href="ff_8c.html#abecaaa3eb194f786ab6042cf3b5e4ee7">f_write</a>(&amp;fp, str, (<a class="code" href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>)len, &amp;s1);</div><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    {</div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Write error\n&quot;</span>);</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    }</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    <span class="keywordflow">if</span> (len != s1)</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    {</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Write error - wanted(%d) got(%d)\n&quot;</span>,s1,len);</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    }</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;</div><div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    <a class="code" href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a>(&amp;fp);</div><div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;}</div><div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;</div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;</div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;<span class="preprocessor">#if _FS_RPATH &gt;= 2</span></div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a13b052da94097b8b93c3d9f1e564463d">fatfs_cd</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;{</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;cd [%s]\n&quot;</span>, name);</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;    <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(<a class="code" href="ff_8c.html#a99a8f0eee3b847f8148f4a3ce30b7dc1">f_chdir</a>(name));</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;}</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;</div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a4aa62d8de2bcffc328877256c6b71223">fatfs_mkdir</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;{</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;mkdir [%s]\n&quot;</span>, name);</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(<a class="code" href="ff_8c.html#a3d18a7f44fbdca3752f437264055c1ba">f_mkdir</a>(name));</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;</div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;}</div><div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;</div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;<span class="preprocessor">#if _FS_RPATH &gt;= 2</span></div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a1c1f6b5746c5bd08bdf645c951c5421f">fatfs_pwd</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;{</div><div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;    <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    <span class="keywordtype">char</span> str[128];</div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;    res = <a class="code" href="ff_8c.html#a7da7c8d04f20b7f630073721eff53572">f_getcwd</a>(str, <span class="keyword">sizeof</span>(str)-2);</div><div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    <span class="keywordflow">if</span> (res)</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;pwd [%s]\n&quot;</span>, str);</div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;}</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#ace47a8763a0dc6a96cc8f8abb4bf3a7a">fatfs_rename</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *oldpath, <span class="keyword">const</span> <span class="keywordtype">char</span> *newpath)</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;{</div><div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;<span class="comment">/* Rename an object */</span></div><div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;    <span class="keywordtype">int</span> rc;</div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    rc = <a class="code" href="ff_8c.html#a82160e688e49b549c8023a08517a65cb">f_rename</a>(oldpath, newpath);</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keywordflow">if</span>(rc)</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    {</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(rc);</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    }</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;}</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a40de2d35f2fcb56e6c0c3f8674bab818">fatfs_rm</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;{</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;rm [%s]\n&quot;</span>, name);</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(<a class="code" href="ff_8c.html#ac4f434f28feb4769fc4453f0cefe84f8">f_unlink</a>(name));</div><div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;}</div><div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#ab138ae7a3df0a7affe8e27236e8b70c3">fatfs_rmdir</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;{</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;rmdir [%s]\n&quot;</span>, name);</div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(<a class="code" href="ff_8c.html#ac4f434f28feb4769fc4453f0cefe84f8">f_unlink</a>(name));</div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;}</div><div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;</div><div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;</div><div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;</div><div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fatfs__tests_8h.html#a2f1bfd0aaac56da99b1898a21a2b73e9">fatfs_stat</a>(<span class="keywordtype">char</span> *name)</div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;{</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;    <a class="code" href="structFILINFO.html">FILINFO</a> <a class="code" href="network_8c.html#a1202cd63c360958e6272f9a20fa90f8b">info</a>;</div><div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;    <span class="keywordtype">int</span> res;</div><div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;</div><div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;stat [%s]\n&quot;</span>, name);</div><div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;    res = <a class="code" href="ff_8c.html#a84b14214901bda30fdfe7f45f1aeb634">f_stat</a>(name, &amp;info);</div><div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;    <span class="keywordflow">if</span>(res == <a class="code" href="ff_8h.html#a49d0171ecbd362cda5680a0d360db44ca62fce5cd9df008f8fc85f99706bda5f1">FR_OK</a>)</div><div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;    {</div><div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;        <a class="code" href="fatfs__sup_8c.html#a11c6644c2b989d1ac2492b30b80e4ead">fatfs_filinfo_list</a>(&amp;info);</div><div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    }</div><div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;    {</div><div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        <a class="code" href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a>(res);</div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;    }</div><div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;}</div><div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;</div><div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;</div><div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;</div><div class="ttc" id="stringsup_8c_html_a895ea3a2f9901e4c962806cc15271339"><div class="ttname"><a href="stringsup_8c.html#a895ea3a2f9901e4c962806cc15271339">strlen</a></div><div class="ttdeci">MEMSPACE size_t WEAK_ATR strlen(const char *str)</div><div class="ttdoc">String Length. </div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00146">stringsup.c:146</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_a40de2d35f2fcb56e6c0c3f8674bab818"><div class="ttname"><a href="fatfs__tests_8h.html#a40de2d35f2fcb56e6c0c3f8674bab818">fatfs_rm</a></div><div class="ttdeci">MEMSPACE void fatfs_rm(char *name)</div></div>
<div class="ttc" id="ff_8c_html_abecaaa3eb194f786ab6042cf3b5e4ee7"><div class="ttname"><a href="ff_8c.html#abecaaa3eb194f786ab6042cf3b5e4ee7">f_write</a></div><div class="ttdeci">MEMSPACE FRESULT f_write(FIL *fp, const void *buff, UINT btw, UINT *bw)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03607">ff.c:3607</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_a2f1bfd0aaac56da99b1898a21a2b73e9"><div class="ttname"><a href="fatfs__tests_8h.html#a2f1bfd0aaac56da99b1898a21a2b73e9">fatfs_stat</a></div><div class="ttdeci">MEMSPACE void fatfs_stat(char *name)</div></div>
<div class="ttc" id="user__config_8h_html"><div class="ttname"><a href="user__config_8h.html">user_config.h</a></div><div class="ttdoc">Master include file for project Includes all project includes and defines here. </div></div>
<div class="ttc" id="fatfs__tests_8h_html_a97a2409a53057e1a63537f196ff00a50"><div class="ttname"><a href="fatfs__tests_8h.html#a97a2409a53057e1a63537f196ff00a50">fatfs_cat</a></div><div class="ttdeci">MEMSPACE void fatfs_cat(char *name)</div></div>
<div class="ttc" id="time_8h_html"><div class="ttname"><a href="time_8h.html">time.h</a></div><div class="ttdoc">Common Linux/POSIX time functions. </div></div>
<div class="ttc" id="structFILINFO_html"><div class="ttname"><a href="structFILINFO.html">FILINFO</a></div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00203">ff.h:203</a></div></div>
<div class="ttc" id="ff_8c_html_ab007bc58e2fdfc5d1ae8e87796e73965"><div class="ttname"><a href="ff_8c.html#ab007bc58e2fdfc5d1ae8e87796e73965">f_chmod</a></div><div class="ttdeci">MEMSPACE FRESULT f_chmod(const TCHAR *path, BYTE attr, BYTE mask)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04823">ff.c:4823</a></div></div>
<div class="ttc" id="bdffontutil_8h_html_a4d192fe48cb19d0ef5a88c52ed23cf4c"><div class="ttname"><a href="bdffontutil_8h.html#a4d192fe48cb19d0ef5a88c52ed23cf4c">MATCH</a></div><div class="ttdeci">#define MATCH(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="bdffontutil_8h_source.html#l00039">bdffontutil.h:39</a></div></div>
<div class="ttc" id="structFATFS_html"><div class="ttname"><a href="structFATFS.html">FATFS</a></div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00092">ff.h:92</a></div></div>
<div class="ttc" id="ff_8c_html_ae9647e339708c3d803db8de141986d96"><div class="ttname"><a href="ff_8c.html#ae9647e339708c3d803db8de141986d96">f_readdir</a></div><div class="ttdeci">MEMSPACE FRESULT f_readdir(DIR *dp, FILINFO *fno)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04260">ff.c:4260</a></div></div>
<div class="ttc" id="network_8c_html_a1202cd63c360958e6272f9a20fa90f8b"><div class="ttname"><a href="network_8c.html#a1202cd63c360958e6272f9a20fa90f8b">info</a></div><div class="ttdeci">static struct ip_info info</div><div class="ttdef"><b>Definition:</b> <a href="network_8c_source.html#l00055">network.c:55</a></div></div>
<div class="ttc" id="ff_8c_html_a82160e688e49b549c8023a08517a65cb"><div class="ttname"><a href="ff_8c.html#a82160e688e49b549c8023a08517a65cb">f_rename</a></div><div class="ttdeci">MEMSPACE FRESULT f_rename(const TCHAR *path_old, const TCHAR *path_new)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04716">ff.c:4716</a></div></div>
<div class="ttc" id="ff_8c_html_a72098afbbef7ff8b850bacfc721d6bd0"><div class="ttname"><a href="ff_8c.html#a72098afbbef7ff8b850bacfc721d6bd0">f_getfree</a></div><div class="ttdeci">MEMSPACE FRESULT f_getfree(const TCHAR *path, DWORD *nclst, FATFS **fatfs)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04387">ff.c:4387</a></div></div>
<div class="ttc" id="ff_8c_html_ad55dbad62205065ba7e36ae5fc72dac6"><div class="ttname"><a href="ff_8c.html#ad55dbad62205065ba7e36ae5fc72dac6">f_read</a></div><div class="ttdeci">MEMSPACE FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03506">ff.c:3506</a></div></div>
<div class="ttc" id="ff_8c_html_adab02d5c0e368f7d131ef7d7d2676c7a"><div class="ttname"><a href="ff_8c.html#adab02d5c0e368f7d131ef7d7d2676c7a">f_close</a></div><div class="ttdeci">MEMSPACE FRESULT f_close(FIL *fp)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03808">ff.c:3808</a></div></div>
<div class="ttc" id="ff_8h_html_afa366963220c89b882c0361794020c14"><div class="ttname"><a href="ff_8h.html#afa366963220c89b882c0361794020c14">FA_WRITE</a></div><div class="ttdeci">#define FA_WRITE</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00331">ff.h:331</a></div></div>
<div class="ttc" id="ff_8c_html_ab13b513f64fe29bc02dcba9581ab3bfa"><div class="ttname"><a href="ff_8c.html#ab13b513f64fe29bc02dcba9581ab3bfa">f_open</a></div><div class="ttdeci">MEMSPACE FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03304">ff.c:3304</a></div></div>
<div class="ttc" id="ff_8h_html_a1f4f3530ff03abbd979b072536e72290"><div class="ttname"><a href="ff_8h.html#a1f4f3530ff03abbd979b072536e72290">FA_READ</a></div><div class="ttdeci">#define FA_READ</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00330">ff.h:330</a></div></div>
<div class="ttc" id="fatfs__tests_8c_html_ad5fed10f1507f55cfea45f5e3cb8c5d5"><div class="ttname"><a href="fatfs__tests_8c.html#ad5fed10f1507f55cfea45f5e3cb8c5d5">mmc_test</a></div><div class="ttdeci">MEMSPACE void mmc_test(void)</div><div class="ttdoc">Perform key FatFs diagnostics tests. </div><div class="ttdef"><b>Definition:</b> <a href="fatfs__tests_8c_source.html#l00271">fatfs_tests.c:271</a></div></div>
<div class="ttc" id="ff_8h_html_afba4546b131dea4b24727fa20a80e29f"><div class="ttname"><a href="ff_8h.html#afba4546b131dea4b24727fa20a80e29f">FA_CREATE_ALWAYS</a></div><div class="ttdeci">#define FA_CREATE_ALWAYS</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00334">ff.h:334</a></div></div>
<div class="ttc" id="ff_8c_html_aeb607fa4b05d127d971ff40f143bac66"><div class="ttname"><a href="ff_8c.html#aeb607fa4b05d127d971ff40f143bac66">f_opendir</a></div><div class="ttdeci">MEMSPACE FRESULT f_opendir(DIR *dp, const TCHAR *path)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04155">ff.c:4155</a></div></div>
<div class="ttc" id="ff_8c_html_a3d18a7f44fbdca3752f437264055c1ba"><div class="ttname"><a href="ff_8c.html#a3d18a7f44fbdca3752f437264055c1ba">f_mkdir</a></div><div class="ttdeci">MEMSPACE FRESULT f_mkdir(const TCHAR *path)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04622">ff.c:4622</a></div></div>
<div class="ttc" id="user__task_8c_html_a863d8bc03e69f2efee6042bcec7b456b"><div class="ttname"><a href="user__task_8c.html#a863d8bc03e69f2efee6042bcec7b456b">optimistic_yield</a></div><div class="ttdeci">void optimistic_yield(uint32_t interval_us)</div><div class="ttdef"><b>Definition:</b> <a href="user__task_8c_source.html#l00102">user_task.c:102</a></div></div>
<div class="ttc" id="fatfs__sup_8c_html_ad7d2063fab39190a7288bfa7cb647b46"><div class="ttname"><a href="fatfs__sup_8c.html#ad7d2063fab39190a7288bfa7cb647b46">fatfs_status</a></div><div class="ttdeci">MEMSPACE void fatfs_status(char *ptr)</div><div class="ttdoc">Compute space used, number of directories and files contained used by a drive. </div><div class="ttdef"><b>Definition:</b> <a href="fatfs__sup_8c_source.html#l00268">fatfs_sup.c:268</a></div></div>
<div class="ttc" id="fatfs__tests_8c_html_adc8904337a4bee5420ecc3527864f844"><div class="ttname"><a href="fatfs__tests_8c.html#adc8904337a4bee5420ecc3527864f844">fatfs_tests</a></div><div class="ttdeci">MEMSPACE int fatfs_tests(int argc, char *argv[])</div><div class="ttdoc">FatFs test parser. </div><div class="ttdef"><b>Definition:</b> <a href="fatfs__tests_8c_source.html#l00101">fatfs_tests.c:101</a></div></div>
<div class="ttc" id="structDIR_html"><div class="ttname"><a href="structDIR.html">DIR</a></div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00184">ff.h:184</a></div></div>
<div class="ttc" id="integer_8h_html_ad342ac907eb044443153a22f964bf0af"><div class="ttname"><a href="integer_8h.html#ad342ac907eb044443153a22f964bf0af">DWORD</a></div><div class="ttdeci">unsigned long DWORD</div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00031">integer.h:31</a></div></div>
<div class="ttc" id="mathio_8h_html_af4de2514b7778805db3815e8dd6cf09a"><div class="ttname"><a href="mathio_8h.html#af4de2514b7778805db3815e8dd6cf09a">putchar</a></div><div class="ttdeci">int putchar(int c)</div><div class="ttdoc">put a character to stdout See fdevopen() sets stream-&gt;put get for TTY devices </div><div class="ttdef"><b>Definition:</b> <a href="posix_8c_source.html#l00351">posix.c:351</a></div></div>
<div class="ttc" id="stringsup_8c_html_a17598481fa495598cd57447afde0ff6b"><div class="ttname"><a href="stringsup_8c.html#a17598481fa495598cd57447afde0ff6b">strcpy</a></div><div class="ttdeci">MEMSPACE WEAK_ATR char * strcpy(char *dest, const char *src)</div><div class="ttdoc">copy a string </div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00161">stringsup.c:161</a></div></div>
<div class="ttc" id="fatfs__sup_8c_html_ab3509aecf1844c84f1797e5b567d531c"><div class="ttname"><a href="fatfs__sup_8c.html#ab3509aecf1844c84f1797e5b567d531c">put_rc</a></div><div class="ttdeci">MEMSPACE void put_rc(int rc)</div><div class="ttdoc">display FatFs return code as ascii string </div><div class="ttdef"><b>Definition:</b> <a href="fatfs__sup_8c_source.html#l00145">fatfs_sup.c:145</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_ace47a8763a0dc6a96cc8f8abb4bf3a7a"><div class="ttname"><a href="fatfs__tests_8h.html#ace47a8763a0dc6a96cc8f8abb4bf3a7a">fatfs_rename</a></div><div class="ttdeci">MEMSPACE void fatfs_rename(const char *oldpath, const char *newpath)</div></div>
<div class="ttc" id="ff_8h_html_a0c5dd686b10f84c2a2b3954957a5979a"><div class="ttname"><a href="ff_8h.html#a0c5dd686b10f84c2a2b3954957a5979a">FA_OPEN_EXISTING</a></div><div class="ttdeci">#define FA_OPEN_EXISTING</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00332">ff.h:332</a></div></div>
<div class="ttc" id="system_8c_html_aca19f0f1e5d805c1e5f61101fa4690f1"><div class="ttname"><a href="system_8c.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a></div><div class="ttdeci">MEMSPACE void * safemalloc(size_t size)</div><div class="ttdoc">Safe Malloc - Display Error message if Malloc fails. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00146">system.c:146</a></div></div>
<div class="ttc" id="mathio_8c_html_ae952cb1ae6aec6b2b6c02ae67e9ea87b"><div class="ttname"><a href="mathio_8c.html#ae952cb1ae6aec6b2b6c02ae67e9ea87b">atol</a></div><div class="ttdeci">MEMSPACE long atol(const char *str)</div><div class="ttdoc">Convert ASCII string to number in base 10. </div><div class="ttdef"><b>Definition:</b> <a href="mathio_8c_source.html#l00295">mathio.c:295</a></div></div>
<div class="ttc" id="mmc__hal_8c_html_ad417477e66c88b40dcce683fd6a5c47a"><div class="ttname"><a href="mmc__hal_8c.html#ad417477e66c88b40dcce683fd6a5c47a">mmc_init</a></div><div class="ttdeci">MEMSPACE int mmc_init(int verbose)</div><div class="ttdoc">Initialize MMC and FatFs interface, display diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="mmc__hal_8c_source.html#l00208">mmc_hal.c:208</a></div></div>
<div class="ttc" id="uart_8c_html_aad52b616aa1f07c5a59a5ddb6be602dc"><div class="ttname"><a href="uart_8c.html#aad52b616aa1f07c5a59a5ddb6be602dc">uart_putc</a></div><div class="ttdeci">MEMSPACE int uart_putc(uint8 uart_no, char c)</div><div class="ttdoc">Write a byte from a uart with NL to CR/NL conversion Note: This function waits/blocks util the write ...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00323">uart.c:323</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_a13b052da94097b8b93c3d9f1e564463d"><div class="ttname"><a href="fatfs__tests_8h.html#a13b052da94097b8b93c3d9f1e564463d">fatfs_cd</a></div><div class="ttdeci">MEMSPACE void fatfs_cd(char *name)</div></div>
<div class="ttc" id="mathio_8h_html"><div class="ttname"><a href="mathio_8h.html">mathio.h</a></div><div class="ttdoc">Math IO functions, and verious conversion code with floating point support. </div></div>
<div class="ttc" id="structFILINFO_html_a9e5b78ed7190f73de3ebcbdfbd6d1844"><div class="ttname"><a href="structFILINFO.html#a9e5b78ed7190f73de3ebcbdfbd6d1844">FILINFO::fsize</a></div><div class="ttdeci">FSIZE_t fsize</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00204">ff.h:204</a></div></div>
<div class="ttc" id="ili9341_8c_html_a4b00721003b8d35559a55c9098ff36c5"><div class="ttname"><a href="ili9341_8c.html#a4b00721003b8d35559a55c9098ff36c5">ind</a></div><div class="ttdeci">int ind</div><div class="ttdef"><b>Definition:</b> <a href="ili9341_8c_source.html#l00373">ili9341.c:373</a></div></div>
<div class="ttc" id="structFILINFO_html_a7c3ce2dd03dc9a9726967fc43116079f"><div class="ttname"><a href="structFILINFO.html#a7c3ce2dd03dc9a9726967fc43116079f">FILINFO::fname</a></div><div class="ttdeci">TCHAR fname[_MAX_LFN+1]</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00210">ff.h:210</a></div></div>
<div class="ttc" id="stringsup_8h_html"><div class="ttname"><a href="stringsup_8h.html">stringsup.h</a></div><div class="ttdoc">Various string and character functions. </div></div>
<div class="ttc" id="fatfs__tests_8h_html_a4aa62d8de2bcffc328877256c6b71223"><div class="ttname"><a href="fatfs__tests_8h.html#a4aa62d8de2bcffc328877256c6b71223">fatfs_mkdir</a></div><div class="ttdeci">MEMSPACE void fatfs_mkdir(char *name)</div></div>
<div class="ttc" id="fatfs__sup_8c_html_a11c6644c2b989d1ac2492b30b80e4ead"><div class="ttname"><a href="fatfs__sup_8c.html#a11c6644c2b989d1ac2492b30b80e4ead">fatfs_filinfo_list</a></div><div class="ttdeci">MEMSPACE void fatfs_filinfo_list(FILINFO *info)</div><div class="ttdoc">Display FILINFO structure in a readable format. </div><div class="ttdef"><b>Definition:</b> <a href="fatfs__sup_8c_source.html#l00335">fatfs_sup.c:335</a></div></div>
<div class="ttc" id="ff_8c_html_ac4f434f28feb4769fc4453f0cefe84f8"><div class="ttname"><a href="ff_8c.html#ac4f434f28feb4769fc4453f0cefe84f8">f_unlink</a></div><div class="ttdeci">MEMSPACE FRESULT f_unlink(const TCHAR *path)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04526">ff.c:4526</a></div></div>
<div class="ttc" id="posix_8h_html_a0c0ef221f95f64e8632451312fd18cc8"><div class="ttname"><a href="posix_8h.html#a0c0ef221f95f64e8632451312fd18cc8">stdout</a></div><div class="ttdeci">#define stdout</div><div class="ttdef"><b>Definition:</b> <a href="posix_8h_source.html#l00270">posix.h:270</a></div></div>
<div class="ttc" id="fatfs__tests_8c_html_a5306e261e84e6700704633a53153857c"><div class="ttname"><a href="fatfs__tests_8c.html#a5306e261e84e6700704633a53153857c">fatfs_ls</a></div><div class="ttdeci">MEMSPACE void fatfs_ls(char *name)</div><div class="ttdef"><b>Definition:</b> <a href="fatfs__tests_8c_source.html#l00313">fatfs_tests.c:313</a></div></div>
<div class="ttc" id="fatfs__tests_8c_html_ad16bc1913c19300dba43a07006c9ac52"><div class="ttname"><a href="fatfs__tests_8c.html#ad16bc1913c19300dba43a07006c9ac52">fatfs_help</a></div><div class="ttdeci">MEMSPACE void fatfs_help(int full)</div><div class="ttdoc">Display FatFs test diagnostics help menu. </div><div class="ttdef"><b>Definition:</b> <a href="fatfs__tests_8c_source.html#l00046">fatfs_tests.c:46</a></div></div>
<div class="ttc" id="structFILINFO_html_a838d542585831b085537b363f18205c0"><div class="ttname"><a href="structFILINFO.html#a838d542585831b085537b363f18205c0">FILINFO::fattrib</a></div><div class="ttdeci">BYTE fattrib</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00207">ff.h:207</a></div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="integer_8h_html_a36cb3b01d81ffd844bbbfb54003e06ec"><div class="ttname"><a href="integer_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a></div><div class="ttdeci">unsigned int UINT</div><div class="ttdef"><b>Definition:</b> <a href="integer_8h_source.html#l00019">integer.h:19</a></div></div>
<div class="ttc" id="ff_8h_html_aff61d3ed8f8c6ea5c25c3cb366320e08"><div class="ttname"><a href="ff_8h.html#aff61d3ed8f8c6ea5c25c3cb366320e08">FM_FAT32</a></div><div class="ttdeci">#define FM_FAT32</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00343">ff.h:343</a></div></div>
<div class="ttc" id="system_8c_html_a9b9f170e9a01e51b57656fcda1f183df"><div class="ttname"><a href="system_8c.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a></div><div class="ttdeci">MEMSPACE void wdt_reset(void)</div><div class="ttdoc">reset watchdog </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00190">system.c:190</a></div></div>
<div class="ttc" id="mathio_8h_html_ad6078f8da2d30ecaef99e0c2d250c0c8"><div class="ttname"><a href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a></div><div class="ttdeci">MEMSPACE int printf(const char *format,...)</div></div>
<div class="ttc" id="stringsup_8c_html_ae330bc7e8f9c442404f44ca0187b27d3"><div class="ttname"><a href="stringsup_8c.html#ae330bc7e8f9c442404f44ca0187b27d3">MATCHARGS</a></div><div class="ttdeci">MEMSPACE int MATCHARGS(char *str, char *pat, int min, int argc)</div><div class="ttdoc">Match two strings and compare argument index Display message if the number of arguments is too few...</div><div class="ttdef"><b>Definition:</b> <a href="stringsup_8c_source.html#l00471">stringsup.c:471</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_a1c1f6b5746c5bd08bdf645c951c5421f"><div class="ttname"><a href="fatfs__tests_8h.html#a1c1f6b5746c5bd08bdf645c951c5421f">fatfs_pwd</a></div><div class="ttdeci">MEMSPACE void fatfs_pwd(void)</div></div>
<div class="ttc" id="fatfs__tests_8h_html_a23a2f537fbb0a757d6f98a5a60824a4d"><div class="ttname"><a href="fatfs__tests_8h.html#a23a2f537fbb0a757d6f98a5a60824a4d">fatfs_copy</a></div><div class="ttdeci">MEMSPACE void fatfs_copy(char *from, char *to)</div></div>
<div class="ttc" id="ff_8c_html_a84b14214901bda30fdfe7f45f1aeb634"><div class="ttname"><a href="ff_8c.html#a84b14214901bda30fdfe7f45f1aeb634">f_stat</a></div><div class="ttdeci">MEMSPACE FRESULT f_stat(const TCHAR *path, FILINFO *fno)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l04351">ff.c:4351</a></div></div>
<div class="ttc" id="structFIL_html"><div class="ttname"><a href="structFIL.html">FIL</a></div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00161">ff.h:161</a></div></div>
<div class="ttc" id="ff_8c_html_a7da7c8d04f20b7f630073721eff53572"><div class="ttname"><a href="ff_8c.html#a7da7c8d04f20b7f630073721eff53572">f_getcwd</a></div><div class="ttdeci">MEMSPACE FRESULT f_getcwd(TCHAR *buff, UINT len)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03919">ff.c:3919</a></div></div>
<div class="ttc" id="system_8c_html_a61f06ee340417c629633142e0a5db288"><div class="ttname"><a href="system_8c.html#a61f06ee340417c629633142e0a5db288">safefree</a></div><div class="ttdeci">MEMSPACE void safefree(void *p)</div><div class="ttdoc">Safe free - Only free a pointer if it is in malloc memory range. We want to try to catch frees of sta...</div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00165">system.c:165</a></div></div>
<div class="ttc" id="ff_8h_html_a49d0171ecbd362cda5680a0d360db44ca62fce5cd9df008f8fc85f99706bda5f1"><div class="ttname"><a href="ff_8h.html#a49d0171ecbd362cda5680a0d360db44ca62fce5cd9df008f8fc85f99706bda5f1">FR_OK</a></div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00221">ff.h:221</a></div></div>
<div class="ttc" id="send_8c_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00017">send.c:17</a></div></div>
<div class="ttc" id="ff_8c_html_a99a8f0eee3b847f8148f4a3ce30b7dc1"><div class="ttname"><a href="ff_8c.html#a99a8f0eee3b847f8148f4a3ce30b7dc1">f_chdir</a></div><div class="ttdeci">MEMSPACE FRESULT f_chdir(const TCHAR *path)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03866">ff.c:3866</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_ab138ae7a3df0a7affe8e27236e8b70c3"><div class="ttname"><a href="fatfs__tests_8h.html#ab138ae7a3df0a7affe8e27236e8b70c3">fatfs_rmdir</a></div><div class="ttdeci">MEMSPACE void fatfs_rmdir(char *name)</div></div>
<div class="ttc" id="ff_8h_html_a3a9db44e978ed6c13b641e092d4cd7d3"><div class="ttname"><a href="ff_8h.html#a3a9db44e978ed6c13b641e092d4cd7d3">AM_DIR</a></div><div class="ttdeci">#define AM_DIR</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00358">ff.h:358</a></div></div>
<div class="ttc" id="ff_8c_html_a3bff54412627eb9cf8951ec88a464d1c"><div class="ttname"><a href="ff_8c.html#a3bff54412627eb9cf8951ec88a464d1c">f_mount</a></div><div class="ttdeci">MEMSPACE FRESULT f_mount(FATFS *fs, const TCHAR *path, BYTE opt)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l03255">ff.c:3255</a></div></div>
<div class="ttc" id="system_8c_html_a65ca18fba3d6cdb9ce8ca8040a96e0c5"><div class="ttname"><a href="system_8c.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a></div><div class="ttdeci">MEMSPACE void * safecalloc(size_t nmemb, size_t size)</div><div class="ttdoc">Safe Calloc - Display Error message if Calloc fails. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00128">system.c:128</a></div></div>
<div class="ttc" id="fatfs_8h_html"><div class="ttname"><a href="fatfs_8h.html">fatfs.h</a></div></div>
<div class="ttc" id="fatfs__tests_8h_html_ad2debe3eb75bb1a6f65329659eedb706"><div class="ttname"><a href="fatfs__tests_8h.html#ad2debe3eb75bb1a6f65329659eedb706">fatfs_create</a></div><div class="ttdeci">MEMSPACE void fatfs_create(char *name, char *str)</div></div>
<div class="ttc" id="ff_8c_html_a52ff3c14f48a7bd12b5d8fcef84787ea"><div class="ttname"><a href="ff_8c.html#a52ff3c14f48a7bd12b5d8fcef84787ea">f_mkfs</a></div><div class="ttdeci">MEMSPACE FRESULT f_mkfs(const TCHAR *path, BYTE opt, DWORD au, void *work, UINT len)</div><div class="ttdef"><b>Definition:</b> <a href="ff_8c_source.html#l05296">ff.c:5296</a></div></div>
<div class="ttc" id="structFATFS_html_ad7fa7a509f8d097a9ab182d6c47be568"><div class="ttname"><a href="structFATFS.html#ad7fa7a509f8d097a9ab182d6c47be568">FATFS::csize</a></div><div class="ttdeci">WORD csize</div><div class="ttdef"><b>Definition:</b> <a href="ff_8h_source.html#l00100">ff.h:100</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
